<%@ page import="entity.hotel_order" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="static com.sun.xml.internal.fastinfoset.alphabet.BuiltInRestrictedAlphabets.table" %>
<%@ page import="entity.hotel_tenant" %><%--
  Created by IntelliJ IDEA.
  User: a3502
  Date: 2022/4/27
  Time: 16:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>订单信息查询</title>
    <link rel="stylesheet" href="/hotelSystem/layui/css/layui.css"  media="all">
</head>
<body>
<div class="layui-form">
    <%
        List<hotel_order> orderList = (ArrayList)request.getAttribute("orderList");
        String CheckTip = (String)request.getAttribute("CheckTip");
        if(orderList==null&&CheckTip==null){
    %>
    <h3>订单信息获取失败!!!!!</h3>
    <%
    }else if(CheckTip!=null){
    %>  <h3>信息录入成功，请前往订单查询界面访问</h3>
    <%
    }else {
    %>
    <table class="layui-table">
        <colgroup>
            <col width="150">
            <col width="150">
            <col width="200">
            <col>
        </colgroup>
        <thead>
        <tr>
            <th>订单号</th>
            <th>房间号</th>
            <th>房间价格</th>
            <th>客服编号</th>
            <th>订单生成日期</th>
            <th>订单备注</th>
        </tr>
        </thead>
        <tbody>
    <%
        for(hotel_order hotel_order:orderList){
    %>
                <tr>
                    <th><%=hotel_order.getOrder_id() %></th>
                    <th><%=hotel_order.getRoom_no()%></th>
                    <th><%=hotel_order.getRoom_price()%></th>
                    <th><%=hotel_order.getEmployee_id()%></th>
                    <th><%=hotel_order.getOrder_time()%></th>
                    <th><%=hotel_order.getOrder_remarks()==null?"无":hotel_order.getOrder_remarks()%></th>
                </tr>
    <%
        }
    %>
    </tbody>
    </table>
    <%
    }
    %>
</div>
<script src="/hotelSystem/layui/layui.js" charset="utf-8"></script>
</body>
</html>
